/**
 * Copyright (c) 2008 Drasko Kokic
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
**/

package j2me.util;

/**
 * The partial Java Collection Framework retrofit into the J2ME
 * 
 * @author Drasko
 *
**/
//TODO public interface Collection<E> extends Iterable<E>
public interface Collection extends Iterable
{

  //TODO public boolean add(E o);
  public boolean add(Object o);

  // TODO public boolean addAll(Collection<? extends E> c);
  public boolean addAll(Collection c);

  public void clear();

  public boolean contains(Object o);

  // TODO public boolean containsAll(Collection<?> c);
  public boolean containsAll(Collection c);

  public boolean equals(Object o);

  public int hashCode();

  public boolean isEmpty();

  public boolean remove(Object o);

  // TODO public boolean removeAll(Collection<?> c);
  public boolean removeAll(Collection c);

  // TODO public boolean retainAll(Collection<?> c);
  public boolean retainAll(Collection c);

  public int size();

  public Object[] toArray();

  // TODO public <T> T[] toArray(T[] a);
  public Object[] toArray(Object[] a);

}
